{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent } from '../../style';\n// ============================== Shared ==============================\nvar genSharedDividerStyle = function genSharedDividerStyle(token) {\n  var _Object$assign;\n  var componentCls = token.componentCls,\n    sizePaddingEdgeHorizontal = token.sizePaddingEdgeHorizontal,\n    colorSplit = token.colorSplit,\n    lineWidth = token.lineWidth;\n  return _defineProperty({}, componentCls, Object.assign(Object.assign({}, resetComponent(token)), (_Object$assign = {\n    borderBlockStart: \"\".concat(lineWidth, \"px solid \").concat(colorSplit),\n    // vertical\n    '&-vertical': {\n      position: 'relative',\n      top: '-0.06em',\n      display: 'inline-block',\n      height: '0.9em',\n      margin: \"0 \".concat(token.dividerVerticalGutterMargin, \"px\"),\n      verticalAlign: 'middle',\n      borderTop: 0,\n      borderInlineStart: \"\".concat(lineWidth, \"px solid \").concat(colorSplit)\n    },\n    '&-horizontal': {\n      display: 'flex',\n      clear: 'both',\n      width: '100%',\n      minWidth: '100%',\n      margin: \"\".concat(token.dividerHorizontalGutterMargin, \"px 0\")\n    },\n    '&-horizontal&-with-text': {\n      display: 'flex',\n      alignItems: 'center',\n      margin: \"\".concat(token.dividerHorizontalWithTextGutterMargin, \"px 0\"),\n      color: token.colorTextHeading,\n      fontWeight: 500,\n      fontSize: token.fontSizeLG,\n      whiteSpace: 'nowrap',\n      textAlign: 'center',\n      borderBlockStart: \"0 \".concat(colorSplit),\n      '&::before, &::after': {\n        position: 'relative',\n        width: '50%',\n        borderBlockStart: \"\".concat(lineWidth, \"px solid transparent\"),\n        // Chrome not accept `inherit` in `border-top`\n        borderBlockStartColor: 'inherit',\n        borderBlockEnd: 0,\n        transform: 'translateY(50%)',\n        content: \"''\"\n      }\n    },\n    '&-horizontal&-with-text-left': {\n      '&::before': {\n        width: '5%'\n      },\n      '&::after': {\n        width: '95%'\n      }\n    },\n    '&-horizontal&-with-text-right': {\n      '&::before': {\n        width: '95%'\n      },\n      '&::after': {\n        width: '5%'\n      }\n    }\n  }, _defineProperty(_Object$assign, \"\".concat(componentCls, \"-inner-text\"), {\n    display: 'inline-block',\n    padding: '0 1em'\n  }), _defineProperty(_Object$assign, '&-dashed', {\n    background: 'none',\n    borderColor: colorSplit,\n    borderStyle: 'dashed',\n    borderWidth: \"\".concat(lineWidth, \"px 0 0\")\n  }), _defineProperty(_Object$assign, '&-horizontal&-with-text&-dashed', {\n    '&::before, &::after': {\n      borderStyle: 'dashed none none'\n    }\n  }), _defineProperty(_Object$assign, '&-vertical&-dashed', {\n    borderInlineStart: lineWidth,\n    borderInlineEnd: 0,\n    borderBlockStart: 0,\n    borderBlockEnd: 0\n  }), _defineProperty(_Object$assign, '&-plain&-with-text', {\n    color: token.colorText,\n    fontWeight: 'normal',\n    fontSize: token.fontSize\n  }), _defineProperty(_Object$assign, '&-horizontal&-with-text-left&-no-default-orientation-margin-left', _defineProperty({\n    '&::before': {\n      width: 0\n    },\n    '&::after': {\n      width: '100%'\n    }\n  }, \"\".concat(componentCls, \"-inner-text\"), {\n    paddingInlineStart: sizePaddingEdgeHorizontal\n  })), _defineProperty(_Object$assign, '&-horizontal&-with-text-right&-no-default-orientation-margin-right', _defineProperty({\n    '&::before': {\n      width: '100%'\n    },\n    '&::after': {\n      width: 0\n    }\n  }, \"\".concat(componentCls, \"-inner-text\"), {\n    paddingInlineEnd: sizePaddingEdgeHorizontal\n  })), _Object$assign)));\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Divider', function (token) {\n  var dividerToken = mergeToken(token, {\n    dividerVerticalGutterMargin: token.marginXS,\n    dividerHorizontalWithTextGutterMargin: token.margin,\n    dividerHorizontalGutterMargin: token.marginLG\n  });\n  return [genSharedDividerStyle(dividerToken)];\n}, {\n  sizePaddingEdgeHorizontal: 0\n});","map":{"version":3,"names":["genComponentStyleHook","mergeToken","resetComponent","genSharedDividerStyle","token","componentCls","sizePaddingEdgeHorizontal","colorSplit","lineWidth","Object","assign","borderBlockStart","position","top","display","height","margin","dividerVerticalGutterMargin","verticalAlign","borderTop","borderInlineStart","clear","width","minWidth","dividerHorizontalGutterMargin","alignItems","dividerHorizontalWithTextGutterMargin","color","colorTextHeading","fontWeight","fontSize","fontSizeLG","whiteSpace","textAlign","borderBlockStartColor","borderBlockEnd","transform","content","padding","background","borderColor","borderStyle","borderWidth","borderInlineEnd","colorText","paddingInlineStart","paddingInlineEnd","dividerToken","marginXS","marginLG"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/divider/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { resetComponent } from '../../style';\n// ============================== Shared ==============================\nconst genSharedDividerStyle = token => {\n  const {\n    componentCls,\n    sizePaddingEdgeHorizontal,\n    colorSplit,\n    lineWidth\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      borderBlockStart: `${lineWidth}px solid ${colorSplit}`,\n      // vertical\n      '&-vertical': {\n        position: 'relative',\n        top: '-0.06em',\n        display: 'inline-block',\n        height: '0.9em',\n        margin: `0 ${token.dividerVerticalGutterMargin}px`,\n        verticalAlign: 'middle',\n        borderTop: 0,\n        borderInlineStart: `${lineWidth}px solid ${colorSplit}`\n      },\n      '&-horizontal': {\n        display: 'flex',\n        clear: 'both',\n        width: '100%',\n        minWidth: '100%',\n        margin: `${token.dividerHorizontalGutterMargin}px 0`\n      },\n      '&-horizontal&-with-text': {\n        display: 'flex',\n        alignItems: 'center',\n        margin: `${token.dividerHorizontalWithTextGutterMargin}px 0`,\n        color: token.colorTextHeading,\n        fontWeight: 500,\n        fontSize: token.fontSizeLG,\n        whiteSpace: 'nowrap',\n        textAlign: 'center',\n        borderBlockStart: `0 ${colorSplit}`,\n        '&::before, &::after': {\n          position: 'relative',\n          width: '50%',\n          borderBlockStart: `${lineWidth}px solid transparent`,\n          // Chrome not accept `inherit` in `border-top`\n          borderBlockStartColor: 'inherit',\n          borderBlockEnd: 0,\n          transform: 'translateY(50%)',\n          content: \"''\"\n        }\n      },\n      '&-horizontal&-with-text-left': {\n        '&::before': {\n          width: '5%'\n        },\n        '&::after': {\n          width: '95%'\n        }\n      },\n      '&-horizontal&-with-text-right': {\n        '&::before': {\n          width: '95%'\n        },\n        '&::after': {\n          width: '5%'\n        }\n      },\n      [`${componentCls}-inner-text`]: {\n        display: 'inline-block',\n        padding: '0 1em'\n      },\n      '&-dashed': {\n        background: 'none',\n        borderColor: colorSplit,\n        borderStyle: 'dashed',\n        borderWidth: `${lineWidth}px 0 0`\n      },\n      '&-horizontal&-with-text&-dashed': {\n        '&::before, &::after': {\n          borderStyle: 'dashed none none'\n        }\n      },\n      '&-vertical&-dashed': {\n        borderInlineStart: lineWidth,\n        borderInlineEnd: 0,\n        borderBlockStart: 0,\n        borderBlockEnd: 0\n      },\n      '&-plain&-with-text': {\n        color: token.colorText,\n        fontWeight: 'normal',\n        fontSize: token.fontSize\n      },\n      '&-horizontal&-with-text-left&-no-default-orientation-margin-left': {\n        '&::before': {\n          width: 0\n        },\n        '&::after': {\n          width: '100%'\n        },\n        [`${componentCls}-inner-text`]: {\n          paddingInlineStart: sizePaddingEdgeHorizontal\n        }\n      },\n      '&-horizontal&-with-text-right&-no-default-orientation-margin-right': {\n        '&::before': {\n          width: '100%'\n        },\n        '&::after': {\n          width: 0\n        },\n        [`${componentCls}-inner-text`]: {\n          paddingInlineEnd: sizePaddingEdgeHorizontal\n        }\n      }\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Divider', token => {\n  const dividerToken = mergeToken(token, {\n    dividerVerticalGutterMargin: token.marginXS,\n    dividerHorizontalWithTextGutterMargin: token.margin,\n    dividerHorizontalGutterMargin: token.marginLG\n  });\n  return [genSharedDividerStyle(dividerToken)];\n}, {\n  sizePaddingEdgeHorizontal: 0\n});"],"mappings":";AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ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